import axios from 'axios';
import qs from 'querystring';

export const addRole = body => {
  return axios.post('/api/role/addRole', body);
};

export const updateRole = body => {
  return axios.post('/api/role/modRole', body);
};

export const getRoleList = params => {
  return axios.get(`/api/role/listRole?${qs.stringify(params)}`);
};
